/**
 * 新功能申请套件
 */
export const functionManagementChildren = [
    {
        label: '原因描述',
        formId: 'reason',
        tag: 'TextArea',
        rules: [
            {
                required: true,
                message: '请输入原因'
            }
        ],
        options: {
            placeholder: '请输入',
            disabled: true,
            maxLength: 4000
        }
    },
    {
        label: '功能',
        formId: 'functionName',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: true,
        inFormAuth: false,
        inRenderDom: false
    },
    {
        label: '变更最高等级',
        formId: 'functionGrade',
        tag: 'Input',
        rules: [],
        options: {
            disabled: true
        },
        isSummary: false,
        inFormAuth: false,
        inRenderDom: false,
        isUsed: false,
        proCondition: true,
        conditionShowOption: { valueMode: 'multiple', showType: 'select' },
        dataList: [
            {
                label: '基础',
                value: 1
            },
            {
                label: '职能',
                value: 2
            },
            {
                label: '高级',
                value: 3
            }
        ]
    },
    {
        label: '申请成功跳转',
        formId: 'applySuccessUrl',
        tag: 'Input',
        rules: [],
        options: {
            initialValue: '/setting/privilege/functionManagement',
            disabled: true
        },
        inFormAuth: false,
        inRenderDom: false
    }
];

export const functionManagementControl = {
    label: '功能修改',
    cmpType: 'custom',
    formId: '',
    key: 'AuthManage',
    tag: 'AuthManage',
    children: functionManagementChildren,
    proCondition: true,
    isUsed: false,
    formStyle: true
};
